package com.xingkeduo.remote.feign;

import com.xingkeduo.dto.CraftsmanDTO;
import com.xingkeduo.utils.ResponseUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "business-user")
public interface AdminFeignService {

    //查询发型师信息
    @RequestMapping("/craftsman/getinfo/{id}")
    ResponseUtils<CraftsmanDTO> getCraftsman(@PathVariable("id") @RequestParam(value = "id") String id);



    //获取用户信息
    @RequestMapping("/consumer/getBasicUserInfo")
    String getUserInfo(@RequestParam(value = "f_user_id") String f_user_id);


    /**
     * 根据用户id，获取账号合并后的ids
     * @param urlParam
     * @return
     */
    @RequestMapping("/consumer/getid/{urlParam}")
    String queryUserListByUserId(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);


    /**
     * 发型师查询
     * @return
     */
    @RequestMapping("/craftsman/list/condition/{urlParam}")
    ResponseUtils<String[]> adminCondition(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);


}
